package net.tobby.acm.controller;

import java.io.Serializable;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.tobby.acm.db.derby.FirsttableService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created with IntelliJ IDEA. User: tangb Date: 4/20/12 Time: 3:19 PM To change
 * this template use File | Settings | File Templates.
 */

@Controller
@RequestMapping("/test")
public class DerbyController {

	protected Logger log = LoggerFactory.getLogger(this.getClass().getName());

	@Resource
	private FirsttableService<Serializable> firsttableService;

	@RequestMapping(value = "/testDerby")
	public ModelAndView testDerby(HttpServletRequest request, HttpServletResponse response) throws Exception {

		return new ModelAndView("welcome");

	}

	@RequestMapping(value = "/testDerbyHibernate")
	public ModelAndView testDerbyHibernate(HttpServletRequest request, HttpServletResponse response) throws Exception {

		return new ModelAndView("welcome");

	}

}
